package com.itheima.edu.info.manager.day15;

import com.sun.security.ntlm.Server;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class TcpS {
    public static void main(String[] args) throws IOException {
        ServerSocket st=new ServerSocket(14725);
        Socket s=st.accept();
        InputStream inputStream= s.getInputStream();
        int a;
        while ((a=inputStream.read())!=-1){
            System.out.print((char) a);
        }
        inputStream.close();
        st.close();
    }
}
